/**
 * 
 */
package com.cchr.acms.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cchr.acms.dao.DrugDAO;
import com.cchr.acms.model.Drug;
import com.cchr.acms.service.DrugService;

/**
 * @author Zeng
 *
 */
@Service
public class DrugServiceImpl implements DrugService{
 
    @Autowired
    private DrugDAO drugDAO;

	public List<Drug> getAllDrug() 
	{
		return drugDAO.getAllDrug();
	}

	public Drug getDrugById(long id) 
	{
		return drugDAO.getDrugById(id);
	}
}
